var  Vue = require('vue')
var  Router = require( 'vue-router')

const Age = () => import ('@/components/person/Age');
const Company = () => import ('@/components/person/Company');
const District = () => import ('@/components/person/District');
const Introduction = () => import ('@/components/person/Introduction');
const NiCheng = () => import ('@/components/person/NiCheng');
const Pinformation = () => import ('@/components/person/Pinformation');
const Resume = () => import ('@/components/person/Resume');
const WorkExperiment = () => import ('@/components/person/WorkExperiment');
const WorkExplain = () => import ('@/components/person/WorkExplain');
const WorkTime = () => import ('@/components/person/WorkTime');
const ZhiWei = () => import ('@/components/person/ZhiWei');
const ZhiYeFX = () => import ('@/components/person/ZhiYeFX');
const Education = () => import ('@/components/person/Education');
const EducationView = () => import ('@/components/person/EducationView');
const Technology = () => import ('@/components/person/Technology');
const Production = () => import ('@/components/person/Production');
const Community = () => import ('@/components/person/Community');
const ProgrammerDetail = () => import ( '@/components/programmerDetail/programmerDetail');
const Reserve = () => import ( '@/components/reserve/reserve');
const CommentList = () => import ( '@/components/commentList/commentList');
const WorksDetail = () => import ( '@/components/worksDetail/worksDetail');
const PublishDemand = () => import ( '@/components/publishDemand/publishDemand');
const Setting = () => import ( '@/components/setting/setting');
const RealNameInfo = () => import ( '@/components/realNameInfo/realNameInfo');
const Enterprise = () => import ( '@/components/MY/enterprise');
const Certification = () => import ( '@/components/MY/certification');
const Account = () => import ( '@/components/MY/account');
const Interests = () => import ( '@/components/MY/interests');
const Member = () => import ( '@/components/MY/member');
const WorkExperimentView = () => import ( '@/components/person/WorkExperimentView');
const Signing = () => import('@/components/person/Signing')
const TechnologyCircle = () => import('@/components/TechnologyCircle')
const Message = () => import('@/components/Message')

Vue.use(Router)

export default new Router({
  scrollBehavior (to, from, savedPosition) {
    if (savedPosition) {
      return savedPosition
    } else {
      return { x: 0, y: 0 }
    }
  },
  base: '/',
  routes: [
    /*{
    path: '/',
    redirect:{name: 'Resume',}
    },*/
    {
      path: '/Message',
      name: 'Message',
      component: Message
    },
    {
      path: '/TechnologyCircle',
      name: 'TechnologyCircle',
      component: TechnologyCircle
    },
    {
      path: '/WorkExperimentView/:index',
      name: 'WorkExperimentView',
      component: WorkExperimentView
    },
    {
      path: '/Signing',
      name: 'Signing',
      component: Signing
    },
    {
      path: '/Age',
      name: 'Age',
      component: Age
    },
    {
      path: '/Company',
      name: 'Company',
      component: Company
    },
    {
      path: '/District',
      name: 'District',
      component: District
    },
    {
      path: '/Introduction',
      name: 'Introduction',
      component: Introduction
    },
    {
      path: '/Pinformation',
      name: 'Pinformation',
      component: Pinformation
    },
    {
      path: '/NiCheng',
      name: 'NiCheng',
      component: NiCheng
    },
    {
      path: '/Resume/:id',
      name: 'Resume',
      component: Resume
    },
    {
      path: '/WorkExperiment',
      name: 'WorkExperiment',
      component: WorkExperiment
    },
    {
      path: '/WorkExplain',
      name: 'WorkExplain',
      component: WorkExplain
    },
    {
      path: '/WorkTime',
      name: 'WorkTime',
      component: WorkTime
    },
    {
      path: '/ZhiWei',
      name: 'ZhiWei',
      component: ZhiWei
    },
    {
      path: '/ZhiYeFX',
      name: 'ZhiYeFX',
      component: ZhiYeFX
    },
    {
      path: '/Education',
      name: 'Education',
      component: Education
    },
    {
      path: "/EducationView/:index",
      name: 'EducationView',
      component: EducationView
    },
    {
      path: '/Technology',
      name: 'Technology',
      component: Technology
    },
    {
      path: '/Production',
      name: 'Production',
      component: Production
    },
    {
      path: '/Community',
      name: 'Community',
      component: Community
    },
    {
      path: '/programmerDetail/:id',
      name: 'programmerDetail',
      component: ProgrammerDetail
    },
    {
      path: '/reserve/:id',
      name: 'reserve',
      component: Reserve
    },
    {
      path: '/commentList/:id',
      name: 'commentList',
      component: CommentList
    },
    {
      path: '/worksDetail/:id',
      name: 'worksDetail',
      component: WorksDetail
    },
    {
      path: '/realNameInfo/:id',
      name: 'realNameInfo',
      component: RealNameInfo
    },
    {
      path: '/publishDemand',
      name: 'publishDemand',
      component: PublishDemand
    },
    {
      path: '/setting/:id',
      name: 'setting',
      component: Setting
    },
    {
      path: '/enterprise',
      name: 'enterprise',
      component: Enterprise
    },
    {
      path: '/certification',
      name: 'certification',
      component: Certification
    },
    {
      path: '/account',
      name: 'account',
      component: Account
    },
    {
      path: '/interests',
      name: 'interests',
      component: Interests
    },
    {
      path: '/member',
      name: 'member',
      component: Member
    }
  ]
})
